﻿using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using AutoR.Services;
using Prism.Mvvm;

namespace AutoR.Tasks
{
	// Token: 0x020000E2 RID: 226
	public class AwardTask : BindableBase
	{
		// Token: 0x17000152 RID: 338
		// (get) Token: 0x060004C0 RID: 1216 RVA: 0x000408F6 File Offset: 0x0003EAF6
		protected GameData Game
		{
			get
			{
				return Runtime.Game;
			}
		}

		// Token: 0x17000153 RID: 339
		// (get) Token: 0x060004C1 RID: 1217 RVA: 0x000514B6 File Offset: 0x0004F6B6
		// (set) Token: 0x060004C2 RID: 1218 RVA: 0x000514C0 File Offset: 0x0004F6C0
		public int Id
		{
			[CompilerGenerated]
			get
			{
				return this.<Id>k__BackingField;
			}
			[CompilerGenerated]
			set
			{
				if (this.<Id>k__BackingField == value)
				{
					return;
				}
				this.<Id>k__BackingField = value;
				this.OnPropertyChanged(<>PropertyChangedEventArgs.Id);
			}
		}

		// Token: 0x17000154 RID: 340
		// (get) Token: 0x060004C3 RID: 1219 RVA: 0x000514ED File Offset: 0x0004F6ED
		// (set) Token: 0x060004C4 RID: 1220 RVA: 0x000514F8 File Offset: 0x0004F6F8
		public string Type
		{
			[CompilerGenerated]
			get
			{
				return this.<Type>k__BackingField;
			}
			[CompilerGenerated]
			set
			{
				if (string.Equals(this.<Type>k__BackingField, value, StringComparison.Ordinal))
				{
					return;
				}
				this.<Type>k__BackingField = value;
				this.OnPropertyChanged(<>PropertyChangedEventArgs.Type);
			}
		}

		// Token: 0x17000155 RID: 341
		// (get) Token: 0x060004C5 RID: 1221 RVA: 0x00051529 File Offset: 0x0004F729
		// (set) Token: 0x060004C6 RID: 1222 RVA: 0x00051534 File Offset: 0x0004F734
		public bool Enabled
		{
			[CompilerGenerated]
			get
			{
				return this.<Enabled>k__BackingField;
			}
			[CompilerGenerated]
			set
			{
				if (this.<Enabled>k__BackingField == value)
				{
					return;
				}
				this.<Enabled>k__BackingField = value;
				this.OnPropertyChanged(<>PropertyChangedEventArgs.Enabled);
			}
		}

		// Token: 0x060004C7 RID: 1223 RVA: 0x00051564 File Offset: 0x0004F764
		public async Task Start()
		{
			await this.<Start>g__LoginAward|14_0();
			await this.<Start>g__Task|14_1();
		}

		// Token: 0x060004C8 RID: 1224 RVA: 0x000515A9 File Offset: 0x0004F7A9
		public AwardTask()
		{
			this.<Id>k__BackingField = 7;
			this.<Type>k__BackingField = "AwardTask";
			base..ctor();
		}
	}
}
